#include <stdio.h>

int max(int x, int y);

int main(void)
{
	int a = 10, b = 5, c;
	int t[3] = {5, 2, 9};

	c = max(3, 5);
	printf("The bigger value of 3 and 5 is %d.\n", c);
	printf("The bigger value of 3 * 7 and 2 + 5 is %d.\n", max(3 * 7, 2 + 5));
	printf("The bigger value of %d and %d is %d.\n", a, b, max(a, b));
	printf("The max value in the array is %d.\n", max(max(t[0], t[1]), t[2]));

	return 0;
}

int max(int x, int y)
{
	if (x > y)
		return x;
	else
		return y;
}